package com.fmdj.odr.feign;

import com.fmdj.common.util.CommonResult;

import com.fmdj.odr.controller.form.TransferForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "fmdj-dr")
public interface DrServiceApi {

    @PostMapping("/wallet/income/transfer")
    CommonResult transfer(@RequestBody @Valid TransferForm form);
}
